.PHONY: run clean res

res:res
equation.o:equation.cpp equation.h
	g++ -c equation.cpp -o equation.o
main.o:main.cpp equation.h
	g++ -c main.cpp -o main.o
res:equation.o main.o
	g++ -o res equation.o main.o

clean:
	rm *.o res

run:
	./res
